x11: Avoid spurious focus events on grabs
authorBenjamin Otte <otte@redhat.com>
Mon, 19 Dec 2011 11:39:53 +0000 (12:39 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 7 Mar 2012 14:35:21 +0000 (15:35 +0100)
commit858a6546768e5745b0b1d86b52c175efa5480f65
tree5ff3f9808474e538f84873ca00801c747a79538d
parentf9b23d70ef8a9cdefd1a13bdb1e2b8e4d7f27dc8
x11: Avoid spurious focus events on grabs

We want to avoid handling focus events for the private focus window,
otherwise the keyboard grab taken by for example buttons will cause a
spurious FOCUS_OUT/FOCUS_IN on the toplevel.

The code that did this seems to have been lost in the XI2 transition for
GTK3.

This patch reapplies db4a6040afd3d1cabbb306037e811f37d62e2e76 which was
backed out in 18406b7b04da088f8a3efe7cca5ac1647080dc0b to give
developers a chance to get their X servers fixed. As we want to get this
bugfix in for 3.4, we need to commit it now.

https://bugzilla.gnome.org/show_bug.cgi?id=657578
gdk/x11/gdkdevicemanager-core-x11.c
gdk/x11/gdkdevicemanager-xi2.c
gdk/x11/gdkdevicemanagerprivate-core.h